//
// Created by Administrator on 2022/3/13.
//

#include "sched/sched_entry.h"
#include "sched/sched_sequential.h"
#include "sched/sched_sync.h"

TsStatus TS_SCHED_StartAction(uint16_t nowPc, TsInstance instance) {
    TsSched* sched = &instance->trans[nowPc];
    switch (sched->id) {
#include "sched_type_interpreter/ts_sched_type_interpreter_exec.h"
#include "ts_sched_type.h"
    }
    return TS_USER_BUG;
}

TsStatus TS_SCHED_HandleEvent(TsSchedContainer* container, TsInstance instance) {
    TsSched* sched = &instance->trans[container->now_pc];
    switch (sched->id) {
#include "sched_type_interpreter/ts_sched_type_interpreter_handle_event.h"
#include "ts_sched_type.h"
    }
    return TS_USER_BUG;
}